package com.wanmait.gohome.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.mapper.AreaMapper;
import com.wanmait.gohome.pojo.Area;
import com.wanmait.gohome.service.AreaService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaMapper areaMapper;
    @Override
    public void insert(Area object) {

    }

    @Override
    public void update(Integer id) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public List<Area> findAll() {      //徐金鹏省市联动查询所有

        return  areaMapper.findAll();
    }
    @Override
    public  List<Area> findCities(Integer id) {//徐金鹏省id查询所有市
        return areaMapper.findAllCities(id);
    }

    /**
     * 志愿者省市联动
     * @return
     */
    @Override
    public List<Area> volunteerFindAll() {
        return areaMapper.volunteerFindAll();
    }

    @Override
    public Area findById(Integer id) {
        return null;
    }

    @Override
    public PageInfo<Area> findPage() {
        return null;
    }

    @Override
    public List<Area> findAll(Area object) {
        return null;
    }

    @Override
    public PageInfo<Area> findPage(Area object) {
        return null;
    }
}
